import {useEffect} from 'react'

export const useMobileMode = ()=>{
    useEffect(()=>{
        document.body.classList.add('mobileMode') 
        // document.querySelector('#root').style.width = '375px'
        return()=>{
            document.body.classList.remove('mobileMode') 
            // document.querySelector('#root').style.width = 'initial'
        }
    },[])
}